package cn.iocoder.yudao.module.bk.controller.admin.lwbook.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 来往书籍新增/修改 Request VO")
@Data
public class LwBookSaveReqVO {

    @Schema(description = "编号")
    private Long id;

    @Schema(description = "书名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书名不能为空")
    private String title;

    @Schema(description = "isbn编号")
    private String isbn;

    @Schema(description = "出版社")
    private String publisher;

    @Schema(description = "封面图")
    private String img;

    @Schema(description = "简介")
    private String summary;

    @Schema(description = "出版时间")
    private String pubDate;

    @Schema(description = "出版年限")
    private LocalDate pubYear;

    @Schema(description = "页数", example = "3697")
    private Integer pageCount;

    @Schema(description = "流程状态", example = "0")
    private String applyStatus;

    @Schema(description = "入库状态", example = "0")
    private String storeStatus;

    @Schema(description = "入库时间")
    private LocalDateTime storeTime;

    @Schema(description = "捐献人id", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "捐献人id不能为空")
    private Long donor;

    @Schema(description = "当前持有人id")
    private Long nowHolder;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}
